import request from '@/utils/request'

// 查询大屏公告列表
export function listScreen(query) {
  return request({
    url: '/system/screen/list',
    method: 'get',
    params: query
  })
}

// 查询大屏公告详细
export function getScreen(id) {
  return request({
    url: '/system/screen/' + id,
    method: 'get'
  })
}

// 新增大屏公告
export function addScreen(data) {
  return request({
    url: '/system/screen',
    method: 'post',
    data: data
  })
}

// 修改大屏公告
export function updateScreen(data) {
  return request({
    url: '/system/screen',
    method: 'put',
    data: data
  })
}

// 删除大屏公告
export function delScreen(id) {
  return request({
    url: '/system/screen/' + id,
    method: 'delete'
  })
}
// 获取大屏通知内容
export function getScreenNotice() {
  return request({
    url: '/system/screen/screenNotice',
    method: 'get'
  })
}
